package 创建者模式.原型模式.浅克隆.Demo2;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Citation citation=new Citation();
        Student stu=new Student();
        stu.setName("张三");
        citation.setStu(stu);

        Citation citation1=citation.clone();
        Student stu1=citation1.getStu();
        stu1.setName("李四");

//        citation.setName("张三");
//        citation1.setName("李四");

        citation.show();
        citation1.show();
    }
}
